package com.cola.demo;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;

/**
 * @Grup:com.cola.demo
 * @Auther:cola
 * @Data:2021/4/21-2021-04-0:12
 * @version:1.0
 */
@Configuration
public class Appconfig {
    @Bean
    @Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
    @Lazy
    public Notepad3 notepad3(){
        return new Notepad3();
    }
}
